home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!ues5.cern.ch
- From: Dan Pop <Dan.Pop@cern.ch>
- Newsgroups: comp.lang.c
- Subject: Re: RETURN ();
- Date: Sun, 11 Feb 1996 21:51:18 +0100
- Organization: CERN European Lab for Particle Physics
- Message-ID: <9602112051.AA01753@ues5.cern.ch>
- References: <DMFxxq.7M7@emi.net> <4fkrpo$mk7@felix.teclink.net>
- X-NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
- X-Mail2News-Path: mail1.cern.ch!ues5.cern.ch
-
- John Kleinjans <johnk@teclink.net> writes:
-
- >(If anyone out there knows how a function CAN return >1 value, please
- >tell me. I prefer to be right.)
-
- It depends on what you mean by "value". How about this one:
-
- typedef struct {int a, b, c;} foo;
-
- foo bar()
- {
- foo temp = {1, 2, 3};
- return temp;
- }
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-